package gdut.stream.last;

import java.util.ArrayList;

public class CountTest {
    public static void main(String[] args) {
        ArrayList<String> strings = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            strings.add("string" + i);
        }
        long count = strings.stream()
                .count();
        System.out.println(count);

    }
}
